package com.gxa.ssm340.service.impl;

import com.gxa.ssm340.common.R;
import com.gxa.ssm340.entity.pojo.Menu;
import com.gxa.ssm340.mapper.RoleMapper;
import com.gxa.ssm340.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 赵文川
 * @Description: $
 * @date 2023/10/26 10:15
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public String getRole(String phone) {
        return roleMapper.selectByPhone(phone);
    }

    @Override
    public List<Menu> getMenus(String phone) {
        return roleMapper.selectMenusByPhone(phone);
    }
}
